import { combineReducers } from 'redux';
import { fork, all } from 'redux-saga/effects';
import { UserInfoManage, userInfoManageState, userInfoManageSaga } from './UserInfoManage';

const userManageRoutes = [
    { path: '/userInfoManage', component: UserInfoManage }
];

const userManageMenuList = [
    {
        title: '用户管理',
        key: '/userManage',
        icon: 'user',
        children: [
            {
                title: '用户信息管理',
                key: '/userInfoManage',
                icon: 'user'
            }
        ]
    }
];
const userManageState = combineReducers({
    userInfoManageState
})
function* userManageSaga(){
    yield all([
        fork(userInfoManageSaga)
    ])
}
export { userManageRoutes, userManageMenuList, userManageState, userManageSaga };
// import { combineReducers } from 'redux';
// import { fork, all } from 'redux-saga/effects';
// import { UserInfoManage, userInfoManageState, userInfoManageSaga } from './UserInfoManage';
// import { BlackListManage, blackListManageState, blackListManageSaga } from './BlackListManage';

// const userManageRoutes = [
//     { path: '/userInfoManage', component: UserInfoManage },
//     { path: '/blackListManage', component: BlackListManage },
// ];

 // export const userList = [
    // {
    //     title: '用户管理',
    //     key: '/userManage',
    //     icon: 'user',
    //     children: [
    //         {
    //             title: '用户信息管理',
    //             key: '/userInfoManage',
    //             icon: 'user'
    //         },
    //         {
    //             title: '黑名单管理',
    //             key: '/blackListManage',
    //             icon: 'close-circle'
    //         }
    //     ]
    // }
// ];
 // const obj = {};
// const userManageState = combineReducers({
//     userInfoManageState,
//     blackListManageState
// })
// function* userManageSaga() {
//     yield all([
//         fork(userInfoManageSaga),
//         fork(blackListManageSaga)
//     ])
// }
// export { userManageRoutes, userManageState, userManageSaga, obj };